<!-- src/main/resources/templates/article/delete.html -->
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>删除文章</title>
    <link rel="stylesheet" type="text/css" th:href="@{/css/deletestyles.css}">
</head>
<body>
<h2>删除文章</h2>

<p>请确认是否要删除该文章?</p>

<table>
    <thead>
    <tr>
        <th>文章编号</th>
        <th>文章标题</th>
        <th>文章内容</th>
        <th>发布时间</th>
        <th>用户编号</th>
        <th>文章类型编号</th>
    </tr>
    </thead>
    <tbody>
    <tr>
        <td th:text="${article.id}"></td>
        <td th:text="${article.title}"></td>
        <td th:text="${article.content}"></td>
        <td th:text="${article.pubDate}"></td>
        <td th:text="${article.userId}"></td>
        <td th:text="${article.articleTypeId}"></td>
    </tr>
    </tbody>
</table>

<form th:action="@{'/article/delete/' + ${article.id}}" method="post">
    <input type="submit" value="确认删除" class="confirm-btn">
    <a class="cancel-btn" th:href="@{/article/findAll}">取消</a>
</form>


</body>
</html>
